

import unittest

suite = unittest.TestSuite()

# steo 2-5:
discover = unittest.defaultTestLoader.discover(
  start_dir='./cases', pattern='test_*.py'
)

suite.addTest(discover)

# step 3: create test runner
runner = unittest.TextTestRunner()

# step 4-1: start runner
runner.run(suite)

# step 4-2: start runner
# runner.run(discover)